package com.youwu.weather.service;

import com.youwu.weather.vo.WeatherResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

// 服务地址（即项目名）
@FeignClient("weather-data-eureka")
@RequestMapping("/weather")
public interface WeatherDataClient {

    @GetMapping("/now/{city}")
    WeatherResponse getCurrentWeather(@PathVariable("city") String cityName);

    @GetMapping("/forecast/{city}")
    WeatherResponse getForecastWeather(@PathVariable("city") String cityName);

    @GetMapping("/hourly/{city}")
    WeatherResponse getHourlyWeather(@PathVariable("city") String cityName);

    @GetMapping("/lifestyle/{city}")
    WeatherResponse getLifestyleWeather(@PathVariable("city") String cityName);
}
